<?
// The class built by the factory method
class ArticlePrototype {
    private $id;
    private $title;
    private $description;
	private $author_id;
	private $date;
	private $content;
	private $status;
	private $page_id;
	private $type_id;
    private $image_url;
	private $big_image_url;
	private $thumb_image_url;
	
    function ArticlePrototype($data) {
	    print_r($data);
		$this->id 		= $data->art_id;
        $this->title 		= $data->art_title;
		$this->description 	= $data->art_descr;
        $this->author_id 	= $data->art_author_id;
        $this->date 		= $data->art_date;
        $this->content 		= $data->art_content;
		$this->status 		= $data->art_status;
		$this->page_id 		= $data->art_page_id;
		$this->type_id 		= $data->art_type;
		$this->image_url 	= $data->art_image_url;
		$this->big_image_url = $data->art_image_big_url;
		$this->thumb_image_url = $data->art_image_thumb_url;
    }
 
 	
	public function id() {
        return htmlspecialchars($this->id);
    }
	
    public function title() {
        return htmlspecialchars($this->title);
    }
 	
	public function description() {
        return htmlspecialchars($this->description);
    }
		 
    public function author_id() {
        return htmlspecialchars($this->author_id);
    }
 
    public function date() {
        return date('F j, Y',$this->date);
    }
 
    public function content() {
        return htmlspecialchars($this->content);
    }
	
	public function status() {
        return htmlspecialchars($this->status);
    }
	
	public function page_id() {
        return htmlspecialchars($this->page_id);
    }
	
	public function type_id() {
        return htmlspecialchars($this->type_id);
    }
	
	public function image_url() {
        return htmlspecialchars($this->image_url);
    }
	
	public function big_image_url() {
        return htmlspecialchars($this->big_image_url);
    }
	
	public function thumb_image_url() {
        return htmlspecialchars($this->thumb_image_url);
    }
	
	
}
?>